package idv.loveloser.mobilemoodle;

import android.app.Activity;
import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class MainActivity extends TabActivity {
	private TabHost host;
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main2);
        host =getTabHost();
        host.addTab(host.newTabSpec("Course").setIndicator("Course").setContent(new Intent(getApplicationContext(),CourseManager.class)));
        host.addTab(host.newTabSpec("Assignment").setIndicator("Assignment").setContent(new Intent(getApplicationContext(),AssignmentManager.class)));
        host.addTab(host.newTabSpec("Forum").setIndicator("Forum").setContent(new Intent(getApplicationContext(),ForumManager.class)));
	}
}
